package com.sc.nft.service.impl;

import com.sc.nft.dao.MallOrderStatusLogDao;
import com.sc.nft.entity.MallOrderStatusLog;
import com.sc.nft.entity.RefundRecordVO;
import com.sc.nft.entity.vo.mall.MallOrderStatusVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.service.MallOrderStatusLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单操作记录表服务接口实现
 *
 * @author Sun
 * @since 2023-05-09 10:47:20
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class MallOrderStatusLogServiceImpl implements MallOrderStatusLogService {
    private final MallOrderStatusLogDao mallOrderStatusLogDao;

    @Override
    public List<MallOrderStatusLog> getListByOrderId(Long orderId) {
        return mallOrderStatusLogDao.getListByOrderId(orderId);
    }

    @Override
    public MallOrderStatusLog getOneByOrderIdAndChangeType(Long id, String changeType) {
        return mallOrderStatusLogDao.getOneByOrderIdAndChangeType(id,changeType);
    }

    @Override
    public List<MallOrderStatusLog> getListByOrderIdAndRefund(Long id, Boolean isRefund) {
        return  mallOrderStatusLogDao.getListByOrderIdAndRefund(id,isRefund);
    }

    @Override
    public List<MallOrderStatusLog> getListByOrderIdGroupType(Long orderId) {
        return mallOrderStatusLogDao.getListByOrderIdGroupType(orderId);
    }

    @Override
    public List<MallOrderStatusLog> getListByOrderIdsAndChangeType(List<Long> orderIds, String changeType) {
        return mallOrderStatusLogDao.getListByOrderIdsAndChangeType(orderIds,changeType);
    }
}